//
//  MonthHeaderView.swift
//  Kosspot
//
//  Created by 李鑫 on 2025/7/18.
//

import SwiftUI

struct MonthHeaderView: View {
    @Binding var selectedDate: Date
    private let formatter: DateFormatter = {
        let f = DateFormatter()
        f.dateFormat = "yyyy年MM月"
        return f
    }()
    
    var body: some View {
        VStack {}
//        HStack {
//            Button(action: { changeMonth(by: -1) }) {
//                Image(systemName: "chevron.left")
//            }
//            Text(formatter.string(from: selectedDate))
//                .font(.headline)
//            Button(action: { changeMonth(by: 1) }) {
//                Image(systemName: "chevron.right")
//            }
//        }
    }
    
//    private func changeMonth(by value: Int) {
//        selectedDate = calendar.date(byAdding: .month,
//                                   value: value,
//                                   to: selectedDate)!
//    }
}

